-
Notifications
You must be signed in to change notification settings - Fork 2
Expose Sense report interval to HA #331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdds a new numeric entity description for a measurement report interval (report_interval) to NUMBER_TYPES, updates UI strings and translations, bumps package/manifest versions, and removes a Ruff ignore for UP038 in pyproject.toml. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User (HA UI)
participant HA as Home Assistant Number Entity
participant PW as Plugwise USB Integration
participant N as USB Node
U->>HA: Set report_interval (minutes)
HA->>PW: call async_number_fn: set_report_interval(value)
PW->>N: send new reporting interval
N-->>PW: acknowledge / apply
PW-->>HA: update entity state
HA-->>U: show updated value
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (5)
🔇 Additional comments (2)
Pre-merge checks (3 passed)✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (2)
custom_components/plugwise_usb/translations/en.json (1)
176-178: Improve wording for natural English"Measurement report interval" reads awkwardly; "Measurement reporting interval" is idiomatic and aligns with similar labels.
- "sense_report_interval": { - "name": "Measurement report interval" + "sense_report_interval": { + "name": "Measurement reporting interval"custom_components/plugwise_usb/strings.json (1)
176-178: Keep base string consistent with en translationMirror the improved phrasing so translations stay in sync.
- "sense_report_interval": { - "name": "Measurement report interval" + "sense_report_interval": { + "name": "Measurement reporting interval"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
custom_components/plugwise_usb/number.py(1 hunks)custom_components/plugwise_usb/strings.json(1 hunks)custom_components/plugwise_usb/translations/en.json(1 hunks)custom_components/plugwise_usb/translations/nl.json(1 hunks)pyproject.toml(0 hunks)
💤 Files with no reviewable changes (1)
- pyproject.toml
|
bouwew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @dirixmjm !



Summary by CodeRabbit